package com.blockmeta.bbs.businesslibrary.pojo;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by author on 2018/1/10.
 */

public class SearchCoinsPOJO {


    private List<CoinsBean> coins;
    private List<RankingBean> ranking;

    public List<CoinsBean> getCoins() {
        return coins;
    }

    public void setCoins(List<CoinsBean> coins) {
        this.coins = coins;
    }

    public List<RankingBean> getRanking() {
        return ranking;
    }

    public void setRanking(List<RankingBean> ranking) {
        this.ranking = ranking;
    }

    public static class CoinsBean {
        /**
         * coin : btc
         * convert_cny : 6.4381
         * currency : usd
         * exchange : okcoincom
         * fee : 2.0E-4
         * key : okcoincom
         * name : Okcoin国际
         * ticker : {"buy":"13905.18","date":"1516083315000","high":"15408.24","last":"14109.29","low":"13600.00","price_24h_before":"14709.01","sell":"14109.18","volume":"84.15"}
         * url : https://www.okcoin.com/
         * exchangeLogo :
         * is_optional :
         */
        public boolean choice = false;
        private String coin;
        private double convert_cny;
        private String currency;
        @SerializedName("currency_show")
        private String currencyShow;
        private String exchange;
        private double fee;
        private String key;
        private String name;
        private TickerBean ticker;
        private String url;
        private String exchangeLogo;
        @SerializedName("is_optional")
        private boolean isOptional;
        @SerializedName("coin_key")
        private String coinKey;

        public String getCoinKey() {
            return coinKey;
        }

        public String getExchangeLogo() {
            return exchangeLogo;
        }

        public boolean isOptional() {
            return isOptional;
        }

        public void setOptional(boolean optional) {
            isOptional = optional;
        }

        public String getCoin() {
            return coin;
        }

        public void setCoin(String coin) {
            this.coin = coin;
        }

        public double getConvert_cny() {
            return convert_cny;
        }

        public void setConvert_cny(double convert_cny) {
            this.convert_cny = convert_cny;
        }

        public String getCurrency() {
            return currency;
        }

        public void setCurrency(String currency) {
            this.currency = currency;
        }

        public String getCurrencyShow() {
            return currencyShow;
        }

        public String getExchange() {
            return exchange;
        }

        public void setExchange(String exchange) {
            this.exchange = exchange;
        }

        public double getFee() {
            return fee;
        }

        public void setFee(double fee) {
            this.fee = fee;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public TickerBean getTicker() {
            return ticker;
        }

        public void setTicker(TickerBean ticker) {
            this.ticker = ticker;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public boolean isChoice() {
            return choice;
        }

        public void setChoice(boolean choice) {
            this.choice = choice;
        }

        public static class TickerBean {
            /**
             * buy : 13905.18
             * date : 1516083315000
             * high : 15408.24
             * last : 14109.29
             * low : 13600.00
             * price_24h_before : 14709.01
             * sell : 14109.18
             * volume : 84.15
             */

            private String buy;
            private String date;
            private String high;
            private String last;
            private String low;
            private String price_24h_before;
            private String sell;
            private String volume;

            public String getBuy() {
                return buy;
            }

            public void setBuy(String buy) {
                this.buy = buy;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getHigh() {
                return high;
            }

            public void setHigh(String high) {
                this.high = high;
            }

            public String getLast() {
                return last;
            }

            public void setLast(String last) {
                this.last = last;
            }

            public String getLow() {
                return low;
            }

            public void setLow(String low) {
                this.low = low;
            }

            public String getPrice_24h_before() {
                return price_24h_before;
            }

            public void setPrice_24h_before(String price_24h_before) {
                this.price_24h_before = price_24h_before;
            }

            public String getSell() {
                return sell;
            }

            public void setSell(String sell) {
                this.sell = sell;
            }

            public String getVolume() {
                return volume;
            }

            public void setVolume(String volume) {
                this.volume = volume;
            }
        }
    }

    public static class RankingBean {
        /**
         * change : -3.70
         * circulating_supply : 16805512.0
         * name : Bitcoin
         * price : 13330.30
         * symbol : BTC
         * total : 224,022,516,614
         * volume : 13,538,100,000
         * coin_key:BTC
         */

        private String change;
        private String circulating_supply;
        private String name;
        private String price;
        private String symbol;
        private String total;
        private String volume;
        private int index;
        @SerializedName("coin_key")
        private String coinKey;

        public String getCoinKey() {
            return coinKey;
        }

        public int getIndex() {
            return index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public String getChange() {
            return change;
        }

        public void setChange(String change) {
            this.change = change;
        }

        public String getCirculating_supply() {
            return circulating_supply;
        }

        public void setCirculating_supply(String circulating_supply) {
            this.circulating_supply = circulating_supply;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getSymbol() {
            return symbol;
        }

        public void setSymbol(String symbol) {
            this.symbol = symbol;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getVolume() {
            return volume;
        }

        public void setVolume(String volume) {
            this.volume = volume;
        }
    }
}
